package com.mt.restaurant.entity.sale;

import javax.persistence.*;
import java.io.Serializable;
import com.mt.common.core.annotation.DColumn;
import com.mt.common.core.annotation.DEntity;
import com.mt.common.core.web.base.BaseEntity;
import com.mt.restaurant.entity.material.Material;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



import com.mt.restaurant.entity.sale.MenuMaterialRelationShip;
import java.util.List;

@DEntity(label="菜谱",comment="",moduleLabel="销售管理")
@Entity(name="restaurant_vegetable_menu")
@Table(name = "restaurant_vegetable_menu" , indexes = {   })
@ApiModel(description = "菜谱:")
public class VegetableMenu extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@DColumn(index=3,label="菜单价格")
	@ApiModelProperty(value = "菜单价格:")
	@Column(name="price",length=255,nullable=true,unique=false)
	private Double price;

	@DColumn(index=3,label="菜单成本")
	@ApiModelProperty(value = "菜单成本:")
	@Column(name="cost",length=255,nullable=true,unique=false)
	private Double cost;

	@Transient
	private List<Material> materials;

	@Transient
	private List<MenuMaterialRelationShip> menuMaterials;

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public List<MenuMaterialRelationShip> getMenuMaterials() {
		return this.menuMaterials;
	}

	public void setMenuMaterials(List<MenuMaterialRelationShip> menuMaterials) {
		this.menuMaterials = menuMaterials;
	}

	public Double getCost() {
		return cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}

	public List<Material> getMaterials() {
		return materials;
	}

	public void setMaterials(List<Material> materials) {
		this.materials = materials;
	}
}
